package problema017;


public class SumaChar {

	public static void main(String[] args){
		System.out.println(suma1000Char());
	}
	
	public static int suma1000Char(){
		//sumo cantidad de apariciones de cada palabra
		int res = 0;
		//ONE
		res += 191 * 3;
		//TWO
		res += 190 * 3;
		//THREE
		res += 190 * 5;
		//FOUR
		res += 190 * 4;
		//FIVE
		res += 190 * 4;
		//SIX
		res += 190 * 3;
		//SEVEN
		res += 190 * 5;
		//EIGHT
		res += 190 * 5;
		//NINE
		res += 190 * 4;
		//HUNDRED
		res += 900 * 7;
		//THOUSAND
		res += 1 * 8;
		//AND
		res += 891 * 3;
		//TEN 
		res += 10 * 3;
		//ELEVEN
		res += 10 * 6;
		//TWELVE
		res += 10 * 6;	
		//THIRTEEN
		res += 10 * 8;
		//FOURTEEN
		res += 10 * 8;		
		//FIFTEEN
		res += 10 * 7;
		//SIXTEEN
		res += 10 * 7;
		//SEVENTEEN
		res += 10 * 9;
		//EIGHTEEN
		res += 10 * 8;
		//NINETEEN
		res += 10 * 8;
		//TWENTY
		res += 100 * 6;
		//THIRTY
		res += 100 * 6;		
		//FORTY
		res += 100 * 5;
		//FIFTY
		res += 100 * 5;
		//SIXTY
		res += 100 * 5;
		//SEVENTY
		res += 100 * 7;
		//EIGHTY
		res += 100 * 6;
		//NINETY
		res += 100 * 6;
		
		return res;
	}
	
	

}
